﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GUI.View
{
    public partial class MainForm : DevComponents.DotNetBar.Office2007RibbonForm
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void btn_ThongTinKhachHang_Click(object sender, EventArgs e)
        {

            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = true;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_TimKiem_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = true;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_ThongKe_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = false;
            thongKe1.Visible = true;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_GioiThieu_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = true;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_LapPhieuThu_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;

            lapPhieuThuTien1.Visible = true;
            lapPhieuThuTien1.loadinfo();
            lapPhieuThuTien1.Refresh();

            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_XNGT_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = true;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_ThayDoiQuyDinh_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = true;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_DKBanDO_Click(object sender, EventArgs e)
        {
            dangKyBanDiaOc1.Visible = true;
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }



        private void btn_DKBanDO_Click_1(object sender, EventArgs e)
        {
            dangKyBanDiaOc1.Visible = true;

            dangKyBanDiaOc1.loadinfo();
            dangKyBanDiaOc1.Refresh();
            
            //MessageBox.Show(DangKyBanDiaOc._madiaoc + "\n");


            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            khachHangControl1.Visible = false;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_TimKiemNC_Click(object sender, EventArgs e)
        {
            timKiemNangCao1.Visible = true;

            dangKyBanDiaOc1.Visible = false;
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            khachHangControl1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }

        private void btn_GiaHanPhieuThu_Click(object sender, EventArgs e)
        {
            tiepNhanDiaOcControl1.Visible = true;
            timKiemNangCao1.Visible = false;

            dangKyBanDiaOc1.Visible = false;
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            khachHangControl1.Visible = false;
        }

        private void btnTiepNhanDiaOC_Click(object sender, EventArgs e)
        {
            tiepNhanDiaOcControl1.Visible = false;
            timKiemNangCao1.Visible = false;

            dangKyBanDiaOc1.Visible = false;
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            khachHangControl1.Visible = false;

            tiepNhanDiaOcControl1.Visible = true;
        }

        private void buttonItem11_Click(object sender, EventArgs e)
        {
            timKiem1.Visible = false;
            thongKe1.Visible = false;
            about1.Visible = false;
            lapPhieuThuTien1.Visible = false;
            thongTin1.Visible = false;
            tuyChinh1.Visible = false;
            chiTietKhachHangControl1.Visible = false;
            dangKyBanDiaOc1.Visible = false;
            khachHangControl1.Visible = true;
            timKiemNangCao1.Visible = false;
            tiepNhanDiaOcControl1.Visible = false;
        }
    }
}
